package innerClass;

class OuterClass{
    public static int date1=1;
    private int date2=2;
    public int date3=3;

    public static void show (int a, int b){


    }
//    class InnerClass{
//        public int date4=4;
//        public int date5=5;
//        public InnerClass(){
//            OuterClass outerClass =new OuterClass();
//            System.out.println(outerClass.date2);
//            System.out.println(outerClass.date3);
//            System.out.println(OuterClass.date1);
//
//        }
//    }

    static class InnerClass{
        public int date4=4;
      public   InnerClass (){
          System.out.println(date1);//静态内部类可以直接访问静态成员变量和成员方法
          System.out.println(date4);
          show(date4,date1);

      }

    }

}
public class Test {

    public static void main(String[] args) {
        OuterClass.InnerClass innerClass= new OuterClass.InnerClass();
        System.out.println(innerClass.date4);



    }
}
